
    <div class="popup" id="addCommentDiv" style="height:100%;">
    <form action="/BoxSns/Home/Index/do_comment" id="addComment"  class="mgt10" data-type="ajaxSubmit" method="post" style="padding-bottom:20px; ">
        <input type="hidden" name="type" value="<{$param['type']}>" />
        <input type="hidden" name="pid" value="<{$param['pid']}>" />
        <input type="hidden" name="to_comment_id" value="0" />
        <div class="form-item">
        <textarea style="width:100%" class="addCommentTextarea" name="content" data-type="kindeditor" placeholder="请在这里输入你的评论" ></textarea>     
        </div>
       <div class="form-item-btn">
        <button type="button" class="btn colse btn-default btn-large a_bnt">取消</button>
        <button id="btnAsk" type="submit" class="btn  btn-success btn-large a_bnt">提交</button>
        </div>
 
        <div class="clearfix"></div>

    </form>

</div>
  
     <script type="text/javascript">
            $("#addComment").on("ajaxSubmitSuccess", function(e, content) {
                var data = JSON.parse(content);
                if (data.error > 0) {
                    hiApp.alert(data.msg)
                } else {
                    hiApp.alert("提交成功");
                    box_render(data.msg, $("#answerListItemHtml").html(), $("#CommentList"), "append");
                    hiApp.hide_popup();
                }
            })
    </script>